//
//  ICMCustomerInfoView.h
//  ICrEAM
//
//  Created by Cty on 2016/11/01.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMCustomerInfoModel.h"


@protocol ICMCustomerInfoViewDelegate <NSObject>

@optional

- (void)clickDetailBtnAtIndex:(NSInteger)index;



//链接预约单号
- (void)linkBookingNo:(NSString *)bookingNoStr;

@end

@interface ICMCustomerInfoView : UIView<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UILabel *backLabel;
@property (weak, nonatomic) IBOutlet UIView *techImage;
@property (weak, nonatomic) IBOutlet UIView *bgview;

@property (weak, nonatomic) IBOutlet UILabel *licenseNum;
@property (weak, nonatomic) IBOutlet UILabel *vinNum;
@property (weak, nonatomic) IBOutlet UILabel *customerNum;
@property (weak, nonatomic) IBOutlet UILabel *phoneNumer;
@property (weak, nonatomic) IBOutlet UILabel *vip;
@property (weak, nonatomic) IBOutlet UILabel *isvip;
@property (weak, nonatomic) IBOutlet UILabel *lastSuggestion;
@property (weak, nonatomic) IBOutlet UILabel *hasLastSuggestion;
@property (weak, nonatomic) IBOutlet UIButton *lastSuggestionDetail;
@property (weak, nonatomic) IBOutlet UILabel *hasReservedData;
@property (weak, nonatomic) IBOutlet UIButton *reservedDataDetail;
@property (weak, nonatomic) IBOutlet UILabel *hasRecall;
@property (weak, nonatomic) IBOutlet UILabel *hasService;
@property (weak, nonatomic) IBOutlet UIButton *serviceDetail;
@property (weak, nonatomic) IBOutlet UILabel *isThreeGuarantees;
@property (weak, nonatomic) IBOutlet UIButton *monitorInfo;
@property(nonatomic,strong) ICMCustomerInfoModel *cusomerInfo;
@property (weak, nonatomic) IBOutlet UILabel *firstLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdLabel;
@property (weak, nonatomic) IBOutlet UIView *thirdLine;
@property (weak, nonatomic) IBOutlet UIView *secondLine;
@property (weak, nonatomic) IBOutlet UIView *firstLine;
@property (weak, nonatomic) IBOutlet UIImageView *linkBookingNoFlagImageView;

@property (weak, nonatomic) IBOutlet UIView *lineThreeView;

@property (weak, nonatomic) IBOutlet UIButton *returnBtn;
@property (weak, nonatomic) IBOutlet UILabel *ThressDetailB;
@property (weak, nonatomic) IBOutlet UITableView *appintTableView;

//+(instancetype)creatCustomerInfoViewWithFrame:(CGRect)frame   andModel:(ICMCustomerInfoModel*)model;

-(void)setupinitData:(ICMCustomerInfoModel*)model;
@property (nonatomic, weak) id<ICMCustomerInfoViewDelegate>delegate;
@end
